<?php
$title = __('Browse Exhibits');
head(array('title'=>$title, 'bodyid' => 'exhibit', 'bodyclass'=>'browse'));
?>

<div id="secondary">
	<?php echo secondary_poincare();?>
</div>

<div id="primary">
    <h1><?php echo $title; ?> <?php echo __('(%s total)', $total_records); ?></h1>

	<?php if (count($exhibits) > 0): ?>
    <div class="pagination"><?php echo pagination_links(); ?></div>

    <div id="exhibits">
    <p>Les expositions virtuelles suivantes résultent d'une sélection et d'une mise en forme
   	de nombreux documents significatifs des archives Henri Poincaré.
    Suivez la visite, visualisez les expositions et les documents historiques :</p>
    <?php $exhibitCount = 0; ?>
    <?php while(loop_exhibits()): ?>
    	<?php $exhibitCount++; ?>
    	<div class="exhibit <?php if ($exhibitCount%2==1) echo ' even'; else echo ' odd'; ?>">
    		<h2><?php echo link_to_exhibit(); ?></h2>
    		<div class="description"><?php echo snippet(exhibit('description'), 0, 150); ?></div>
    		<p class="tags"><?php echo tag_string(get_current_exhibit(), uri('exhibits/browse/tag/')); ?></p>
    	</div>
    <?php endwhile; ?>
    </div>

    <div class="pagination"><?php echo pagination_links(); ?></div>

    <?php else: ?>
	<p><?php echo __('There are no exhibits available yet.'); ?></p>
	<?php endif; ?>
</div>

<?php foot(); ?>
